package edu.spec.wfl.week02.class2;

public class Qiuhe {
    public static void main(String[] args){
        double i=1,j=1,temp=1,sum=0;
        do{
            for(;j<=i;j++)
                temp=temp*j;
            ++i;
            j=1;
            sum=sum+temp;
            temp=1;
        }while(i<=100);
        System.out.println("sum="+sum);
    }
}
